package com.laboratory.miniooperate.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "minio")
public class MinioProperties {

    /**
     * minio服务地址
     */
    private String endpoint;

    /**
     * minio访问账号
     */
    private String accessKey;

    /**
     * minio访问密码
     */
    private String secretKey;

    /**
     * 默认存储桶名称
     */
    private String bucketName;

    /**
     * 是否公开读
     */
    private Boolean publicRead;

}
